﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapLibrary.Players.Damage
{
    class DamageManager
    {
        private Dictionary<string, DamageAction> damageTable;

        public DamageManager()
        {
            damageTable = new Dictionary<string, DamageAction>();
        }

        public void ActivateDamage(Player p, string collideWith)
        {
            if (damageTable.ContainsKey(collideWith))
                damageTable[collideWith].Activate(p);
        }

        public void AddDamageEntry(string collideWith, DamageAction action)
        {
            damageTable.Add(collideWith, action);
        }
    }
}
